#!/bin/bash

MODULE_NAME=litemall-admin-web

[ -z "$IMAGE_NAME" ] && IMAGE_NAME=oasis/$MODULE_NAME
[ -z "$IMAGE_TAG" ] && IMAGE_TAG=1.0
[ -z "$VUE_APP_EDIT_LINKS" ] && VUE_APP_EDIT_LINKS=true
[ -z "$TAG_ARGS" ] && TAG_ARGS=$IMAGE_NAME/$IMAGE_TAG
[ -z "$SERVER_PORT" ] && SERVER_PORT=9527
docker build --build-arg VUE_APP_EDIT_LINKS="$VUE_APP_EDIT_LINKS" \
    --build-arg PORT=$SERVER_PORT \
    -t "$TAG_ARGS" .

